let dialogContent = document.querySelector('.dialog-content');
let messageInput = document.querySelector('.message-input');

let sendButton = document.querySelector('.send-button');
let stopButton = document.querySelector('.stop-button'); // 获取停止按钮
let controller; // 用于 AbortController

messageElement.addEventListener('input', () => {
    sendButton.disabled = messageInput.value.trim() === '';
});

let turnOver = false;